package com.WebProject.control.UserDao.Impl;

import com.WebProject.control.UserDao.UserControlDao;
import com.WebProject.pojo.t_car;
import com.WebProject.pojo.t_car_zu;
import com.WebProject.pojo.t_user;
import com.WebProject.service.UserDao.UserServiceDao;
import com.WebProject.service.UserDao.impl.UserSerbiceDaoImpl;

import java.util.ArrayList;

/**
 * @PACKAGE_NAME: com.WebProject.control.UserDao.Impl
 * @NAME: UserControlDaoImpl
 * @USER: ZhouYongCheng
 * @DATE: 2022/7/29
 * @TIME: 21:00
 * @Description: UserControlDao实现类
 */
public class UserControlDaoImpl implements UserControlDao {

    private UserServiceDao mapper = new UserSerbiceDaoImpl();

    @Override
    public Boolean updateZuCarStatus(String username, String car_number) {
        return mapper.updateZuCarStatus(username,car_number);
    }

    @Override
    public Boolean updateHuanCarStatus(String car_number) {
        return mapper.updateHuanCarStatus(car_number);
    }

    @Override
    public Boolean registerUser(t_user user) {
        return mapper.registerUser(user);
    }

    @Override
    public ArrayList<t_car> QueryAllCarInfo() {
        return mapper.QueryAllCarInfo();
    }

    @Override
    public ArrayList<t_user> QueryAllUserInfo() {
        return mapper.QueryAllUserInfo();
    }

    @Override
    public ArrayList<t_car> QueryAllTypeCar(String Type) {
        return mapper.QueryAllTypeCar(Type);
    }

    @Override
    public ArrayList<t_car> QueryAllBrandCar(String Brand) {
        return mapper.QueryAllBrandCar(Brand);
    }

    @Override
    public ArrayList<t_car_zu> QuerUserZuInfo(String user_name) {
        return mapper.QuerUserZuInfo(user_name);
    }

    @Override
    public t_car QueryCarInfoById(String car_number) {
        return mapper.QueryCarInfoById(car_number);
    }

    @Override
    public ArrayList<t_car_zu> QueryCarOrder(String username) {
        return mapper.QueryCarOrder(username);
    }

    @Override
    public Boolean deleteUser(String username) {
        return mapper.deleteUser(username);
    }

    @Override
    public t_user QueryUserInfo(String username) {
        return mapper.QueryUserInfo(username);
    }

    @Override
    public Boolean changePassword(String username, String password) {
        return mapper.changePassword(username,password);
    }

    @Override
    public ArrayList<t_car> QueryCar(String order) {
        return mapper.QueryCar(order);
    }

    @Override
    public ArrayList<t_car> QueryAllBrandAndCategory(String brand, String category) {
        return mapper.QueryAllBrandAndCategory(brand,category);
    }
}
